# Required users
$user1 = [ 'test' ]

# Required Packages, latest version
$required_packages_latest = [ 'puppet-lint', 'vim-nox', 'apache2' ]

user { $user1:
  ensure        => 'present',
}

file { '/tmp/testbestand':
  content       => $fqdn,

  # Make sure user is available
  require       => User [ $user1 ],

  # Notify the service apache2 when file is changed
  notify        => Service [ 'apache2' ],
}

package { $required_packages_latest:
  ensure        => 'latest',
}

service { 'apache2':
  ensure        => 'running',

  # Service requires package 
  require       => Package [ 'apache2' ], 
}

#class { mod001 : }

class { '::ntp':
  servers => [ '0.nl.pool.ntp.org', '1.nl.pool.ntp.org' ],
}
